<%@ page session="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>
<title>Formulario de Alta de Stock</title>
</head>

<body>
	<h1>Formulario de Alta de Stock</h1>


	<form:form modelAttribute="dtoStock" action="stock_alta" method="post">

		<table>
			<tr>
				<td valign="top">
				<form:input type="hidden" path="id" />
				<form:input type="hidden" path="fechaCreacionStock" value="01/01/2012" />
					<table>
						<tr>
							<td align="right">Variedad</td>
							<td align="left"><form:select path="variedad">
									<form:options items="${variedades}" />
								</form:select></td>
						</tr>
						<tr>
							<td align="right">Color</td>
							<td align="left"><form:input path="color" /> <form:errors
									path="color" /></td>
						</tr>
						<tr>
							<td align="right">Nivel de Acidez</td>
							<td align="left"><form:input path="acidez" /> <form:errors
									path="acidez" /></td>
						</tr>
						<tr>
							<td align="right">Grado de Alcohol</td>
							<td align="left"><form:input path="alcohol" /> <form:errors
									path="alcohol" /></td>
						</tr>
						<tr>
							<td align="right">Nivel de Azucar</td>
							<td align="left"><form:input path="azucar" /> <form:errors
									path="azucar" /></td>
						</tr>
						<tr>
							<td align="right">Edad</td>
							<td align="left"><form:input path="edad" /> <form:errors
									path="edad" /></td>
						</tr>
						<tr>
							<td align="right">Cantidad (Litros)</td>
							<td align="left"><form:input path="cantidad" /> <form:errors
									path="cantidad" /></td>
						</tr>
						<tr>
							<td align="right">Precio ($)</td>
							<td align="left"><form:input path="precio" /> <form:errors
									path="precio" /></td>
						</tr>
						<tr>
							<td align="right">Numero de registro INV</td>
							<td align="left"><form:input path="idINV" /> <form:errors
									path="idINV" /></td>
						</tr>
						<tr>
							<td align="right">Vencimiento</td>
							<td align="left"><form:input path="vencimiento" value="dd/mm/aaaa" /> <form:errors
									path="vencimiento" /></td>
						</tr>
						<tr>
							<td></td>
							<td><input type="submit" value="Submit"><input type="Reset"></td>
						</tr>
						</tr>
						</table>
					</td>

				</tr>
			</table>
	</form:form>
	------------------------------------------<br>
	<a href="home">inicio</a>

</body>
</html>
